package com.industry.framework.core.exception;

/**
 * @Author nbZhuozh
 * @Date 2025-03-20  09:49
 **/


//方法参数异常
public class CoreInvalidateArgsException extends RuntimeException{

    private int code ;  // 自定义错误码（如 40001=参数错误）

    public CoreInvalidateArgsException(int code, String message) {
        super(message);
        this.code = code;
    }

    public CoreInvalidateArgsException(String s) {
        super(s);
        this.code = GlobalCoreExceptionConst.invalidateException;
    }

    // Getter
    public int getCode() {
        return code;
    }
}
